function DispRespVals(state)
% DispRespVals(state)
%
% Display response values for each trial in its own GUI.
%
% For use with with ConditioningSetup_GUI program.
%
% DJS 2012

T = timerfind('Name','DRVtimer');

switch upper(state)
    case 'START'
        if isempty(T)
            T = timer(...
                'BusyMode','drop', ...
                'ExecutionMode','fixedSpacing', ...
                'Name','DRVtimer', ...
                'Period',0.2, ...
                'StartDelay',0, ...
                'StartFcn',{@DRV_Timerfcns, 'Start'}, ...
                'TimerFcn',{@DRV_Timerfcns, 'Timer'}, ...
                'ErrorFcn',{@DRV_Timerfcns, 'Error'}, ...
                'StopFcn', {@DRV_Timerfcns, 'Stop' }, ...
                'TasksToExecute',inf);
            start(T)
        end
    case 'STOP'
        if ~isempty(T)
            stop(T);
            delete(T);
        end
end